<?php


class Crawl_sina_author_from_phone_json_library  extends Crawl_sina_from_phone_json_library{


    function make_data($result = NULL) {
        $result = json_decode($result);

        if(isset($result->cards[0]->mblog))
        {
            $rs = $result->cards[0]->mblog;
            $rs->user->profile_url = str_replace('m.weibo.cn', 'weibo.com', $rs->user->profile_url);
            return $rs;
        }
        else
            return false;
    }

    // 评论的ip
    function make_parameters() {

        $uid = $this->_ci->input->post('uid');
        $parameters['url'] = 'http://m.weibo.cn/container/getIndex?uid='.$uid
            .'&luicode=20000061&lfid=4090757537556940&featurecode=20000180&containerid=107603'.$uid;
    	return $this->_parameters = $parameters;
    }


}
